/*
 * AbstractMovement.java
 *
 * Created on 27. April 2007, 20:34
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package de.tor.obj.action;

import com.golden.gamedev.object.Sprite;

/**
 *
 * @author Charon
 */
public abstract class AbstractMovement {
    
    private double dHorSpeed = 0;
    private double dVertSpeed = 0;
    private double dXPos = 0;
    private double dYPos = 0;
    
    public Sprite mParent;
    
    public void setParent(Sprite parent){
        mParent = parent;
    }
    
    public double getHorizontalSpeed(){
        return dHorSpeed;
    }
    
    public double getVerticalSpeed(){
        return dVertSpeed;
    }
    
    public void setHorizontalSpeed(double v){
        dHorSpeed = v;
    }
    
    public void setVerticalSpeed(double v){
        dVertSpeed = v;
    }
    
    public double getXPos(){
        return dXPos;
    }
    
    public double getYPos(){
        return dYPos;
    }
    
    public void setXPos(double v){
        dXPos = v;
    }
    
    public void setYPos(double v){
        dYPos = v;
    }
    
    public abstract void update(long elapsedTime);
    
}
